package fileMAX.file00;

import java.io.File;
import java.io.FileFilter;

public class ListFileDemo1 {
    public static void main(String[] args) {
        File file = new File(".");
        if (file.isDirectory()){
            File[] subs =file.listFiles(new FileFilter() {
                public boolean accept(File pathname) {
                    return file.getName().startsWith(".");
                }
            });
            System.out.println(subs.length);
        }
    }
}
